<?php
    session_start();
    //echo $_SESSION["userid"];
    if(!isset($_SESSION["userid"]))
    {
        $loginurl = "../login.php";
        Header("HTTP/1.1 303 See Other");
        Header("Location: $loginurl");
    }
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title><?php echo $_SESSION["username"]; ?>RSS编辑</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script type="text/javascript" src="../js/rssedit.js"></script>
  </head>
  <body>
      <div id="div_userinfo">
          <p><?php echo "欢迎：".$_SESSION["username"]; ?></p>
      </div>
      <div id="div_rssconfig">
          <p>编辑RSS列表</p>
          <form>
              <ul>
                  <li>RSS地址:<input type="text" name="rssaddr" id="rssaddr" /></li>
                  <li>RSS描述:<input type="text" name="rssdescription" id="rssdescription" /></li>
                  <li><input type="button" value="新增" onclick="rssAdd(document.getElementById('rssaddr').value)" /></li>
                  <li><span id="addinfo" /></li>
              </ul>
          </form>
      </div>
      <div id="div_rsslist">
          <p>RSS列表</p>
          <form>
              <span id="span_rsslist"><?php require 'rsslist.php'; ?></span>
          </form>
      </div>
  </body>
</html>